package com.free.space.service.activiti;

import com.free.space.dao.activit.LeaveDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 请假服务类
 */
@Service
public class LeaveService {
    @Autowired
    public LeaveDao leaveDao;
    /**
     * 更新请假结果
     * @param map
     * @return
     */
    public int updateLeaveResult(Map map){
       return leaveDao.updateLeaveResult(map);
    }

    /**
     * 保存请假流程
     * @param map
     * @return
     */
    public int saveLeaveProcess(Map map){
        return leaveDao.saveLeaveProcess(map);
    }
}
